#ifndef IMAGE_H
#define IMAGE_H

class Image
{
private:
	unsigned char *pic;   // buffer image 
	int w;			 // resolution de l'image 
	int h;           // resolution de l'image 
	char *filename;       // nom du fichier image  

public:
	Image();
	Image(int w, int h, char *filename);
	Image(unsigned char *pic, int w, int h, char *filename);
	~Image();

	unsigned char* getPic();
	char* getFileName();
	int getWidth();
	int getHeight();

	void setPixel(int x, int y, Couleur couleur);

	void sauvegarder();
};

#endif